﻿using System.ComponentModel.DataAnnotations;

namespace aspNetCURD.Dtos
{
    public class LoginDto
    {
        [Required(ErrorMessage = "账号不能为空")]
        public string sno { get; set; }
        [Required(ErrorMessage = "登录密码不能为空")]
        [MaxLength(10, ErrorMessage = "最大长度不能超过10")]
        [MinLength(6, ErrorMessage = "最小长度不能小于6")]
        public string password { get; set; }
    }
}
